<?php
if (isset($_SESSION['user_level']) && $_SESSION['user_level'] >= 90) {
    if (isset($InputData['work_id']) &&
        isset($InputData['topic_id']) &&
        isset($InputData['check_mode'])
    )
        require_once("{$CfgPara->root}/model/topic.m.php");
    $myTopic = new topic_m($CfgPara->database);
    $result = $myTopic->topic_add_work_check($InputData['work_id'], $InputData['topic_id'], $InputData['check_mode']);
    echo $result;
    goto page_end;
} else {
    echo('无权限进行此操作');
    goto page_end;
}

page_end:;